package api

import (
	"context"

	"proxy/internal/svc"
	_ "proxy/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type ApiTestLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewApiTestLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ApiTestLogic {
	return &ApiTestLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *ApiTestLogic) ApiTest() (resp any, err error) {
	// todo: add your logic here and delete this line

	return &Msg{
		Success: true,
		Message: "成功",
	}, nil
}

type Msg struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}
